// 下拉框组件
import { Select } from 'antd';
import Item from 'antd/lib/list/Item';
import './InputComponents.css'
const InputComponents = (props) => {
    const { Option } = Select;
    const handleChange = (value)=> {
        props.passData(`${value}`)
    }
    const OptionList =props.InputValue.map(item => <Option value={item.value}  key= {item.id}>{Item.value}</Option>
    )
   
    return (
        <>
            <Select placeholder={props.placeholder} style={{ width: 150 }} onChange={handleChange}>
                {OptionList}    
            </Select>
        </>
    )
}
export default InputComponents;

